package com.example.demo.client;

import com.example.demo.client.evt.gateway.KeysEvt;
import com.example.demo.client.vm.gateway.OnlineUserVm;
import com.ffcs.oss.param.out.ServiceResp;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author zhengmf
 * @Date 2019/1/2  18:45
 */
@AuthorizedFeignClient(name = "gateway")
public interface GatewayClient {
    @ApiOperation(value = "在线用户")
    @PostMapping(value = "/api/onlineUser/getInfo")
    ServiceResp<List<OnlineUserVm>> getInfo();

    @ApiOperation(value = "强制下线用户")
    @PostMapping(value = "/api/onlineUser/offline")
    ServiceResp<Boolean> offline(@RequestBody KeysEvt evt);
}
